From 4d9415c970cb4261a02d2b4b2ad2577bb1c31c7a Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Sat, 4 Apr 2009 19:46:35 +0000 Subject: [PATCH] =?utf8?q?Bug=20568576=20=E2=80=93=20[PATCH]=20undefined?= =?utf8?q?=20operation=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Patch from Stanislav Brabec svn path=/trunk/; revision=415 --- ChangeLog | 15 ++++++++++++--- babl/babl-fish-stats.c | 3 ++- tests/babl_fish_path_fitness.c | 3 ++- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index debf44a..af0850a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2009-04-04 Martin Nordholts + + Bug 568576 – [PATCH] undefined operation fix + + Patch from Stanislav Brabec + + * babl/babl-fish-stats.c + * tests/babl_fish_path_fitness.c + 2009-04-04 Martin Nordholts * AUTHORS: Update for 0.1.0 release. @@ -9,12 +18,12 @@ 2009-04-04 Martin Nordholts - * babl/Makefile.am: babl/Makefile.am: Add forgotten header files - that needs to be distributed with a release. + * babl/Makefile.am: Add forgotten header files that needs to be + distributed with a release. 2009-04-04 Martin Nordholts - * Makefile.am: Makefile.am: We don't have a COPYING.LESSER anymore + * Makefile.am: We don't have a COPYING.LESSER anymore 2009-04-03 Martin Nordholts diff --git a/babl/babl-fish-stats.c b/babl/babl-fish-stats.c index ec19f5f..5348303 100644 --- a/babl/babl-fish-stats.c +++ b/babl/babl-fish-stats.c @@ -36,7 +36,8 @@ table_destination_each (Babl *babl, Babl *source = userdata; Babl *destination = babl; - if ((qux++) % babl_formats_count () == qux / babl_formats_count ()) + qux++; + if (qux % babl_formats_count () == qux / babl_formats_count ()) fprintf (output_file, " "); else { diff --git a/tests/babl_fish_path_fitness.c b/tests/babl_fish_path_fitness.c index d5f5c4d..8480fc0 100644 --- a/tests/babl_fish_path_fitness.c +++ b/tests/babl_fish_path_fitness.c @@ -38,7 +38,8 @@ static int destination_each (Babl *babl, Babl *source = userdata; Babl *destination = babl; - if ((qux++) % babl_formats_count () == qux / babl_formats_count ()) + qux++; + if (qux % babl_formats_count () == qux / babl_formats_count ()) printf (" "); else { -- 2.30.2